#include "CommandFactory.h"
#include "ExitCommand.h"

using namespace std;
//CommandFactory::CommandFactory() {}
//
//CommandFactory::~CommandFactory() {}
//

std::shared_ptr<ICommand> CommandFactory::createMainWindowCommand(int sign, MainWindow* mainWindow)
{
	switch(sign)
	{
		case MAIN_EXIT:
			return createExitCommand(mainWindow);
	}
	return NULL;
}

std::shared_ptr<ICommand> CommandFactory::createExitCommand(MainWindow* mainWindow)
{
	shared_ptr<ICommand> command(new ExitCommand(mainWindow));
	return command;
}
